import * as vscode from 'vscode';
import { CommentAuthorInformation, Uri } from 'vscode';

export class HarmonyPilotComment implements vscode.Comment {
	label: string | undefined;
	public author: CommentAuthorInformation = {
		name: "",
		iconPath: Uri.parse("https://raw.gitcode.com/BeicC/vscode-extension-samples/files/master/comment-sample/resources/icon-small.png")
	  };
	savedBody: string | vscode.MarkdownString; // for the Cancel button
	constructor(
		private functionName: string,
		private labelName: string,
		public body: vscode.MarkdownString,
		public mode: vscode.CommentMode,
		public replaceString: string,
		public parent?: vscode.CommentThread,
		public contextValue?: string
	) {
		this.label = this.labelName;
		this.savedBody = this.body;
		this.body.isTrusted = true;
		this.body.supportHtml = true;
		this.body.supportThemeIcons = true;
		this.author.name = functionName;
	}
}